package com.zr.resident.service.impl;

import java.util.List;
import com.zr.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zr.resident.mapper.EimMassesinfoNucleicpositionMapper;
import com.zr.resident.domain.EimMassesinfoNucleicposition;
import com.zr.resident.service.IEimMassesinfoNucleicpositionService;

import javax.annotation.Resource;

/**
 * 核酸检测点儿Service业务层处理
 * 
 * @author zx
 * @date 2022-10-25
 */
@Service
public class EimMassesinfoNucleicpositionServiceImpl implements IEimMassesinfoNucleicpositionService 
{
    @Resource
    private EimMassesinfoNucleicpositionMapper eimMassesinfoNucleicpositionMapper;

    /**
     * 查询核酸检测点儿
     * 
     * @param id 核酸检测点儿主键
     * @return 核酸检测点儿
     */
    @Override
    public EimMassesinfoNucleicposition selectEimMassesinfoNucleicpositionById(String id)
    {
        return eimMassesinfoNucleicpositionMapper.selectEimMassesinfoNucleicpositionById(id);
    }

    /**
     * 查询核酸检测点儿列表
     * 
     * @param eimMassesinfoNucleicposition 核酸检测点儿
     * @return 核酸检测点儿
     */
    @Override
    public List<EimMassesinfoNucleicposition> selectEimMassesinfoNucleicpositionList(EimMassesinfoNucleicposition eimMassesinfoNucleicposition)
    {
        return eimMassesinfoNucleicpositionMapper.selectEimMassesinfoNucleicpositionList(eimMassesinfoNucleicposition);
    }

    /**
     * 新增核酸检测点儿
     * 
     * @param eimMassesinfoNucleicposition 核酸检测点儿
     * @return 结果
     */
    @Override
    public int insertEimMassesinfoNucleicposition(EimMassesinfoNucleicposition eimMassesinfoNucleicposition)
    {
        eimMassesinfoNucleicposition.setCreateTime(DateUtils.getNowDate());
        return eimMassesinfoNucleicpositionMapper.insertEimMassesinfoNucleicposition(eimMassesinfoNucleicposition);
    }

    /**
     * 修改核酸检测点儿
     * 
     * @param eimMassesinfoNucleicposition 核酸检测点儿
     * @return 结果
     */
    @Override
    public int updateEimMassesinfoNucleicposition(EimMassesinfoNucleicposition eimMassesinfoNucleicposition)
    {
        eimMassesinfoNucleicposition.setUpdateTime(DateUtils.getNowDate());
        return eimMassesinfoNucleicpositionMapper.updateEimMassesinfoNucleicposition(eimMassesinfoNucleicposition);
    }

    /**
     * 批量删除核酸检测点儿
     * 
     * @param ids 需要删除的核酸检测点儿主键
     * @return 结果
     */
    @Override
    public int deleteEimMassesinfoNucleicpositionByIds(String[] ids)
    {
        return eimMassesinfoNucleicpositionMapper.deleteEimMassesinfoNucleicpositionByIds(ids);
    }

    /**
     * 删除核酸检测点儿信息
     * 
     * @param id 核酸检测点儿主键
     * @return 结果
     */
    @Override
    public int deleteEimMassesinfoNucleicpositionById(String id)
    {
        return eimMassesinfoNucleicpositionMapper.deleteEimMassesinfoNucleicpositionById(id);
    }

    /**
     * 核酸点热度更新
     * @param eimMassesinfoNucleicposition
     */
    @Override
    public int updateEimMassesinfoNucleicposition1(EimMassesinfoNucleicposition eimMassesinfoNucleicposition) {
        eimMassesinfoNucleicposition.setUpdateTime(DateUtils.getNowDate());
        return eimMassesinfoNucleicpositionMapper.updateEimMassesinfoNucleicposition1(eimMassesinfoNucleicposition);
    }
}
